From 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Jun 2018 22:10:31 +0200 Subject: New casettes, small fixes --- .../test_status_post[Content warning-public].yaml | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'tests/cassettes/test_status_post[Content warning-public].yaml') diff --git a/tests/cassettes/test_status_post[Content warning-public].yaml b/tests/cassettes/test_status_post[Content warning-public].yaml index a9e03c5..29fe246 100644 --- a/tests/cassettes/test_status_post[Content warning-public].yaml +++ b/tests/cassettes/test_status_post[Content warning-public].yaml @@ -1,6 +1,6 @@ interactions: - request: - body: spoiler_text=Content+warning&visibility=public&status=Toot%21 + body: visibility=public&spoiler_text=Content+warning&status=Toot%21 headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -12,23 +12,26 @@ interactions: method: POST uri: http://localhost:3000/api/v1/statuses response: - body: {string: '{"id":"99984774522933034","created_at":"2018-05-06T22:43:03.947Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content - warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774522933034","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774522933034","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py + body: {string: '{"id":"100154010052169277","created_at":"2018-06-05T20:01:53.183Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content + warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154010052169277","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154010052169277","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John - Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI - walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} + Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":22,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"04c58441abfa3566ebb90a991f76aa52"] + ETag: [W/"bd5ced7bb9478e3e0b8b6250368efd02"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [b9549964-93b9-4414-b7cd-f85165355618] - X-Runtime: ['0.318732'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [6ede2059-de70-4457-adaa-22f088defb4b] + X-Runtime: ['0.314782'] X-XSS-Protection: [1; mode=block] - content-length: ['1414'] + content-length: ['1519'] status: {code: 200, message: OK} - request: body: null @@ -40,19 +43,22 @@ interactions: Content-Length: ['0'] User-Agent: [python-requests/2.9.1] method: DELETE - uri: http://localhost:3000/api/v1/statuses/99984774522933034 + uri: http://localhost:3000/api/v1/statuses/100154010052169277 response: body: {string: '{}'} headers: Cache-Control: ['max-age=0, private, must-revalidate'] Content-Type: [application/json; charset=utf-8] - ETag: [W/"3b6a2b031e1340d6fc01efac3e514faf"] + ETag: [W/"ee22df187d6edee971bf4403c830f317"] + Referrer-Policy: [strict-origin-when-cross-origin] Transfer-Encoding: [chunked] Vary: ['Accept-Encoding, Origin'] X-Content-Type-Options: [nosniff] + X-Download-Options: [noopen] X-Frame-Options: [SAMEORIGIN] - X-Request-Id: [8b16c4ef-8f76-4585-94a2-a58ddd9b27cd] - X-Runtime: ['0.189260'] + X-Permitted-Cross-Domain-Policies: [none] + X-Request-Id: [5efd2649-4ccd-4936-9c2c-8533fd4d2537] + X-Runtime: ['0.130592'] X-XSS-Protection: [1; mode=block] content-length: ['2'] status: {code: 200, message: OK} -- cgit v1.2.3